/*
 *  $Id: HolyWeapon.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Light.Spells {
    public class HolyWeapon: TargetEnchantmentCard<Creature> {
        public HolyWeapon(): base("001_l_s_holy_weapon") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Light;
            Value = 100;
            Target = CreatureTarget.Both;
            AddManaCost(ElementType.Light, 2);
        }

        protected override EnchantmentAffect CreateEnchantment() {
            return new HolyWeaponAffect();
        }

        private class HolyWeaponAffect: EnchantmentAffect<HolyWeapon> {
            public HolyWeaponAffect() {
                Add(new Affects.MagicAttack());
            }
        }
    }
}
